<?php
$table='
<table  class="le_td3" width="235" border="0" cellpadding="0" cellspacing="0">
	<tr>
	  <td class="left_td3" height="25" width="25" align="center">期数</td>
	  <td class="left_td3" width="25" align="center">一</td>
	  <td class="left_td3" width="25" align="center">二</td>
	  <td class="left_td3" width="25" align="center">三</td>
	  <td class="left_td3" width="25" align="center">四</td>
	  <td class="left_td3" width="25" align="center">五</td>
	  <td class="left_td3" width="25" align="center">六</td>
	  <td class="left_td3" width="25" align="center">七</td>
	  <td class="left_td3" width="25" align="center">八</td>
	</tr>
<tbody>';
$table1=$table2=$table3=$table4=$table5="";
$rs = getdb("select * from lotto_".$tbl." where startbet<='" . date("Y-m-d H:i:s") . "' and n1>=0 order by startbet desc limit 10");
while(!$rs->eof)
{
	$table1.='<tr class="row1" style="font-weight:bold">
				<td class="left_td3 co " width="25" align="center">'.n4($rs->f["round"]).'</td>
				<td class="left_td3" width="25" '.($gametype!=23 && intval($rs->f["n1"])>=19?"style='color:#ff0000'":"").' align="center">'.$rs->f["n1"].'</td>
				<td class="left_td3" width="25" '.($gametype!=23 && intval($rs->f["n2"])>=19?"style='color:#ff0000'":"").' align="center">'.$rs->f["n2"].'</td>
				<td class="left_td3" width="25" '.($gametype!=23 && intval($rs->f["n3"])>=19?"style='color:#ff0000'":"").' align="center">'.$rs->f["n3"].'</td>
				<td class="left_td3" width="25" '.($gametype!=23 && intval($rs->f["n4"])>=19?"style='color:#ff0000'":"").' align="center">'.$rs->f["n4"].'</td>
				<td class="left_td3" width="25" '.($gametype!=23 && intval($rs->f["n5"])>=19?"style='color:#ff0000'":"").' align="center">'.$rs->f["n5"].'</td>
				<td class="left_td3" width="25" '.($gametype!=23 && intval($rs->f["n6"])>=19?"style='color:#ff0000'":"").' align="center">'.$rs->f["n6"].'</td>
				<td class="left_td3" width="25" '.($gametype!=23 && intval($rs->f["n7"])>=19?"style='color:#ff0000'":"").' align="center">'.$rs->f["n7"].'</td>
				<td class="left_td3" width="25" '.($gametype!=23 && intval($rs->f["n8"])>=19?"style='color:#ff0000'":"").' align="center">'.$rs->f["n8"].'</td>
			  </tr>';
	$table2.='<tr class="row1">
				<td class="left_td3 co " width="25" align="center">'.n4($rs->f["round"]).'</td>
				<td class="left_td3"  width="25" align="center">'.$MyLotto_3d->showText($rs->f['p1'], "bs").'</td>
				<td class="left_td3"  width="25" align="center">'.$MyLotto_3d->showText($rs->f['p2'], "bs").'</td>
				<td class="left_td3"  width="25" align="center">'.$MyLotto_3d->showText($rs->f['p3'], "bs").'</td>
				<td class="left_td3"  width="25" align="center">'.$MyLotto_3d->showText($rs->f['p4'], "bs").'</td>
				<td class="left_td3"  width="25" align="center">'.$MyLotto_3d->showText($rs->f['p5'], "bs").'</td>
				<td class="left_td3"  width="25" align="center">'.$MyLotto_3d->showText($rs->f['p6'], "bs").'</td>
				<td class="left_td3"  width="25" align="center">'.$MyLotto_3d->showText($rs->f['p7'], "bs").'</td>
				<td class="left_td3"  width="25" align="center">'.$MyLotto_3d->showText($rs->f['p8'], "bs").'</td>
			  </tr>';
	$table3.='<tr class="row1">
				<td class="left_td3 co " width="25" align="center">'.n4($rs->f["round"]).'</td>
				<td class="left_td3"  width="25" align="center">'.$MyLotto_3d->showText($rs->f['p1'], "sd").'</td>
				<td class="left_td3"  width="25" align="center">'.$MyLotto_3d->showText($rs->f['p2'], "sd").'</td>
				<td class="left_td3"  width="25" align="center">'.$MyLotto_3d->showText($rs->f['p3'], "sd").'</td>
				<td class="left_td3"  width="25" align="center">'.$MyLotto_3d->showText($rs->f['p4'], "sd").'</td>
				<td class="left_td3"  width="25" align="center">'.$MyLotto_3d->showText($rs->f['p5'], "sd").'</td>
				<td class="left_td3"  width="25" align="center">'.$MyLotto_3d->showText($rs->f['p6'], "sd").'</td>
				<td class="left_td3"  width="25" align="center">'.$MyLotto_3d->showText($rs->f['p7'], "sd").'</td>
				<td class="left_td3"  width="25" align="center">'.$MyLotto_3d->showText($rs->f['p8'], "sd").'</td>
			  </tr>';
	$table4.='<tr class="row1">
				<td class="left_td3 co " width="25" align="center">'.n4($rs->f["round"]).'</td>
				<td class="left_td3"  width="25" align="center">'.$MyLotto_3d->showText($rs->f['p1'], "three").'</td>
				<td class="left_td3"  width="25" align="center">'.$MyLotto_3d->showText($rs->f['p2'], "three").'</td>
				<td class="left_td3"  width="25" align="center">'.$MyLotto_3d->showText($rs->f['p3'], "three").'</td>
				<td class="left_td3"  width="25" align="center">'.$MyLotto_3d->showText($rs->f['p4'], "three").'</td>
				<td class="left_td3"  width="25" align="center">'.$MyLotto_3d->showText($rs->f['p5'], "three").'</td>
				<td class="left_td3"  width="25" align="center">'.$MyLotto_3d->showText($rs->f['p6'], "three").'</td>
				<td class="left_td3"  width="25" align="center">'.$MyLotto_3d->showText($rs->f['p7'], "three").'</td>
				<td class="left_td3"  width="25" align="center">'.$MyLotto_3d->showText($rs->f['p8'], "three").'</td>
			  </tr>';
	$table5.='<tr class="row1">
				<td class="left_td3 co " width="25" align="center">'.n4($rs->f["round"]).'</td>
				<td class="left_td3"  width="25" align="center">'.$MyLotto_3d->showText($rs->f['p1'], "position").'</td>
				<td class="left_td3"  width="25" align="center">'.$MyLotto_3d->showText($rs->f['p2'], "position").'</td>
				<td class="left_td3"  width="25" align="center">'.$MyLotto_3d->showText($rs->f['p3'], "position").'</td>
				<td class="left_td3"  width="25" align="center">'.$MyLotto_3d->showText($rs->f['p4'], "position").'</td>
				<td class="left_td3"  width="25" align="center">'.$MyLotto_3d->showText($rs->f['p5'], "position").'</td>
				<td class="left_td3"  width="25" align="center">'.$MyLotto_3d->showText($rs->f['p6'], "position").'</td>
				<td class="left_td3"  width="25" align="center">'.$MyLotto_3d->showText($rs->f['p7'], "position").'</td>
				<td class="left_td3"  width="25" align="center">'.$MyLotto_3d->showText($rs->f['p8'], "position").'</td>
			  </tr>';
	$rs->movenext();
}
$rs->close();
$content='<div class="ShowOpen" id="ShowOpen_0">'.$table.$table1."</tbody></table></div>";
$content.='<div class="ShowOpen" id="ShowOpen_1" style="display:none">'.$table.$table2."</tbody></table></div>";
$content.='<div class="ShowOpen" id="ShowOpen_2" style="display:none">'.$table.$table3."</tbody></table></div>";
$content.='<div class="ShowOpen" id="ShowOpen_3" style="display:none">'.$table.$table4."</tbody></table></div>";
$content.='<div class="ShowOpen" id="ShowOpen_4" style="display:none">'.$table.$table5."</tbody></table></div>";
$table=$content;
?>